package com.mark.springsecurity.repository;

import com.mark.springsecurity.domain.SysRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface SysRoleRepository extends JpaRepository<SysRole, Long> {

    Optional<SysRole> findByName(String name);

    Optional<SysRole> findByIdAndEnabled(Long id, Boolean enabled);
}
